#ifndef ZIGBEE3INFRAREDXML_H
#define ZIGBEE3INFRAREDXML_H

#include <QObject>
#include <QStringList>
#include "BaseXml.h"
#include "DataType/ZigbeeStruct.h"
#include "DataType/Zigbee3Struct.h"
#include "DataType/Zigbee3InfraredStruct.h"
#include <QMap>
#include "DataType/Package.h"
class Zigbee3InfraredXml : public BaseXml<Zigbee3InfraredXml>
{
public:

    friend class BaseXml<Zigbee3InfraredXml>;

    bool parser();
    bool modify(const quint16 &number, const Zigbee3InfraredStruct &InfraredData);

    bool clear();
    QByteArray generateData(Package package);
    QByteArray getInfraredID(quint16 addr);
//    QList<Zigbee3Struct> zigbeeList(const QList<ControlPointStruct> &sourcePointList);
//    QMap<quint16,int>onTriggerTime;
    QByteArray InfraredID;
    QMap<quint16,Zigbee3InfraredStruct>CopyInfrared;
    QMap<quint16,Zigbee3InfraredStruct>InfraredDataMap;
    QList<Zigbee3InfraredStruct>InfraredList;
//    QList<Zigbee3Struct>zigbee3List();

private:
//    enum{PointMaxSize = 15};
    Zigbee3InfraredXml();
//    QList<Zigbee3Struct> m_zigbee3List;


};

#endif // ZIGBEE3INFRAREDXML_H
